<template>
  <div>
    <p>{{ count }}</p>

    <button @click="increase">count++</button>
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'

const count = ref(0)

let increase = () => {
  count.value++
}

defineExpose({
  count,
  increase,
})
</script>
